package com.mallcloud.mall.common.core.constant.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * 菜单类型
 */
@Getter
@AllArgsConstructor
public enum MenuTypeEnum {

	LEFT_MENU("0", "left", "左侧菜单"),
	TOP_MENU("2", "top", "顶部菜单"),
	BUTTON("1", "button", "按钮"),
	;

	private String type;
	private String description;
	private String memo;

	public static String getDecs(String type) {
		return Arrays.stream(values()).filter(x -> x.getType().equals(type)).findFirst().get().getDescription();
	}

}
